package com.example.demo1.inquiry.proxy;

import com.example.demo1.inquiry.model.vo.InquiryTotalVo;
import com.example.demo1.wyy.model.LegalPerson;
import com.example.demo1.wyy.model.vo.LegalPersonVo;
import com.example.demo1.wyy.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "matedata")
public interface MatedataProxy {

    @GetMapping("legalPerson/queryById")
    public Result<LegalPersonVo> queryById(@RequestParam("id") Integer id);

    @PostMapping("legalPerson/queryByLegalPerson")
    public Result<LegalPersonVo> queryByLegalPerson(@RequestBody LegalPersonVo legalPersonVo);

    }
